package com.flong.gui;
 
import java.awt.Button;
import java.awt.Frame;
public class TestActionEvent2 {
    public static void main(String args[]) {
			Frame f = new Frame("Test");
			Button b1 = new Button("Start");
			Button b2 = new Button("Stop");
			Monitor3 bh = new Monitor3();
			b1.addActionListener(bh);       
			b2.addActionListener(bh);
			b2.setActionCommand("game over");
			f.add(b1,"North");       
			f.add(b2,"Center");	
			f.pack();        		
			f.setVisible(true);
    }
}

 
